home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _C706FC8313EB4610B0ADC52D4F79AE64 < prev    next >
Encoding:
Text File  |  2000-03-27  |  1.2 KB  |  38 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4.  
  5.  
  6. // the script is the first npc getting murdered
  7.  
  8.  
  9. local entity victim1 // the person who dodges from the alcove
  10. local entity chaser1 // the guy who will wind up chasing him
  11. local entity host_count //
  12. local int chaser_health // the health of the chaser guy
  13.  
  14. local int sig1
  15. local int sig2
  16.  
  17. victim1 = find entity with targetname "victim1"
  18. chaser1 = find entity with targetname "chaser1"
  19. host_count = find entity with targetname "host_count"
  20.  
  21. on chaser1.health < 100 goto chaserhit
  22.  
  23. animate entity chaser1 performing action STD_XYELLATYOU_N_A_A // chaser guys yelling at the hostage
  24. play sound "Speech/TSR1/SKN/BT9-3.adp" for entity chaser1 on channel CHAN_VOICE at volume 0.9
  25. animate entity chaser1 performing action STD_F_FWD_P_2 targeting entity victim1
  26. animate entity chaser1 performing action SCRIPT_RELEASE
  27. play sound "speech/tsr1/npc/eb9-2.adp" for entity victim1 at volume 0.9
  28.  
  29. suspend
  30.  
  31.  
  32. label chaserhit
  33.    animate entity chaser1 performing action SCRIPT_RELEASE
  34.    animate entity victim1 performing action SCRIPT_RELEASE
  35.    reset ai for entity chaser1 // fancy new command    
  36. exit
  37.  
  38.